#ifndef QDYNAMICHIGHLIGHTER_H
#define QDYNAMICHIGHLIGHTER_H

#include <QSyntaxHighlighter>
#include <QHash>
#include <QTextCharFormat>

class QDynamicHighlighter : public QSyntaxHighlighter
{
    Q_OBJECT
public:

    QDynamicHighlighter(QTextDocument *parent = 0);
    ~QDynamicHighlighter();
private:
    QString RegExpPattern;
protected:
    void highlightBlock(const QString &text);
public slots:
    void SetPattern(const QString &pattern);
};

#endif // QDYNAMICHIGHLIGHTER_H
